package cn.stylefeng.guns.modular.packreview.mapper;

import cn.stylefeng.guns.modular.packreview.entity.PackReviewDetails;
import cn.stylefeng.guns.modular.packreview.model.params.PackReviewDetailsParam;
import cn.stylefeng.guns.modular.packreview.model.result.PackReviewDetailsResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 打包复核详情 Mapper 接口
 * </p>
 *
 * @author wp
 * @since 2025-07-05
 */
public interface PackReviewDetailsMapper extends BaseMapper<PackReviewDetails> {

    /**
     * 获取列表
     *
     * @author wp
     * @Date 2025-07-05
     */
    List<PackReviewDetailsResult> customList(@Param("paramCondition") PackReviewDetailsParam paramCondition);

    /**
     * 获取map列表
     *
     * @author wp
     * @Date 2025-07-05
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") PackReviewDetailsParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author wp
     * @Date 2025-07-05
     */
    Page<PackReviewDetailsResult> customPageList(@Param("page") Page page, @Param("paramCondition") PackReviewDetailsParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author wp
     * @Date 2025-07-05
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") PackReviewDetailsParam paramCondition);

    void updatebyTrackNumberAndPickNumber(@Param("paramCondition") PackReviewDetailsParam packReviewDetailsParam);

    void revokePackReviewGoods(@Param("paramCondition")PackReviewDetailsParam packReviewDetailsParam);

    void insertPackReviewDetails(PackReviewDetails packReviewDetailsList);
}
